export default {
  clone: 'git clone https://gitee.com/TimeLuck/x-target.git',
  cdFront: 'cd x-target-view',
  cdBack: 'cd x-target-flow',
  nodeJS: 'https://nodejs.org/en/',
  install: 'npm install',
  dev: 'npm run dev',
  packageJSON: 'x-target-pro/package.json',
  proxy: '"proxy": "http://127.0.0.1:7001" // Backend URL',
  databaseConfCode: `// x-target-pro-flow/src/config/config.default.ts
typeorm: {
  dataSource: {
    default: {
      type: 'mysql',
      host: 'localhost',
      port: 3306,
      username: 'xxx',
      password: 'xxx',
      database: 'xxx',
      // ...
    },
  },
}`,
  proxyConfCode: `// x-target-pro-flow/src/config/config.default.ts
koa: {
  port: 7001,
},
// x-target-pro/package.json (must match the above ports)
"proxy": "http://127.0.0.1:7001"`,
  troubleFirst: 'Error: connect ECONNREFUSED ::1:3306',
  troubleSecond:
    'Error: ER_ACCESS_DENIED_ERROR: Access denied for user "xxx"@"xxx" (using password: YES)',
  troubleThird: 'Error: ER_BAD_DB_ERROR: Unknown database "xxxx"',
  createDBSQL: 'CREATE DATABASE xxxx',
};
